import turtle

def draw():
    pen = turtle.Pen()

    turtle.bgcolor("lightblue")

    # draw cursor to 'turtle'
    pen.shape("turtle")
    pen.color("black","white")

    # draw flag
    pen.begin_fill()
    pen.forward(150)
    pen.left(90)

    pen.forward(100)
    pen.left(90)

    pen.forward(150)
    pen.left(90)

    pen.forward(400)
    pen.left(90)
    pen.end_fill()

    # draw circle
    pen.color("red","red")
    pen.penup()
    pen.goto(75,22)
    pen.pendown()
    pen.begin_fill()
    for i in range(180):
        pen.forward(1)
        pen.left(2)

    pen.end_fill()

    # draw circle
    pen.color("green","green")
    pen.penup()
    pen.goto(75,150)
    pen.pendown()
    pen.begin_fill()
    for i in range(180):
        pen.forward(1)
        pen.left(2)
    pen.end_fill()

    # draw line
    pen.color("green", "green")
    pen.penup()
    pen.width(3)
    pen.goto(75, 200)
    pen.pendown()
    pen.goto(75, 240)


    pen.hideturtle()


if __name__ == "__main__":
    draw()

    turtle.mainloop()